package com.khh.action;

import lombok.Data;

/**
 * Created by webrx on 2017-09-13.
 */
@Data
public class LoginAction {
    private String name;
    private String mima;

    public String execute(){
        String result = "success";
        if(!"admin".endsWith(name) || !"123".equals(mima)){
            result = "fail";
        }
        return result;
    }
}
